package net.costsoft.web.px.purchase.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.costsoft.web.px.purchase.dao.PurchaserequestDao;
import java.util.List;
import net.costsoft.web.px.purchase.vo.Purchaserequest;

/**
 * 
 * <br>
 * <b>功能：</b>PurchaserequestService<br>
 * <b>作者：</b>suxy<br>
 * <b>日期：</b> 2016 <br>
 * <b>版权所有：
 */
@Service
public class PurchaserequestService {
	private final static Logger log= LoggerFactory.getLogger(PurchaserequestService.class);
	
	@Autowired
    private PurchaserequestDao dao;
		
	public PurchaserequestDao getDao() {
		return dao;
	}

	public List<Purchaserequest> query(Purchaserequest t){
		return dao.query(t);
	}
	
	public Integer queryPurchaserequestCount(Purchaserequest t){
		return dao.queryPurchaserequestCount(t);
	}
	
	public void update(Purchaserequest t){
		dao.update(t);
	}
	
	public void insert(Purchaserequest t){
		dao.insert(t);
	} 	
	
	public void delete(Object id){
		dao.delete(id);
	}
	
	public Purchaserequest queryById(Purchaserequest purchaserequest){
		return dao.queryById(purchaserequest);
	}
}
